const loginMiddleware = (req, res, next) => {
  let { username, password } = req.body;
  if (username == 'admin' && password == 'admin') {
    next()
  } else {
    res.redirect('/login.html')
  }
}
module.exports = loginMiddleware